/**
 * Created by zhujiaming on 17/5/6.
 */
import React, {Component} from 'react';
import {Provider} from 'react-redux';
import {createStore,applyMiddleware} from 'redux';
import Root from './root';
import rootReducer from './reducers';
import trunk from 'redux-thunk';
import logger from 'redux-logger'

const rootStore = createStore(
    rootReducer,
    applyMiddleware(trunk,logger),
);

class App extends Component {

    render() {
        return (<Provider store={rootStore}>
            <Root/>
        </Provider>);
    }
}

export default App;